package controllers;

import java.awt.event.ActionEvent;

import system.View;

public class 
DeleteTupleController 
extends AbstractMenuController
{	public 
	DeleteTupleController(View v){ super(v); }

	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();

		if (actionCommand.equals("Delete Item"))
			item.actionPerformed(e);
		else if(actionCommand.equals("Dissasociate Lead Singer"))
			lead_singer.actionPerformed(e);
		else if(actionCommand.equals("Dissasociate Song"))
			has_song.actionPerformed(e);
		else if(actionCommand.equals("Delete Supplier"))
			supplier.actionPerformed(e);
		else if(actionCommand.equals("Delete Shipment"))
			shipment.actionPerformed(e);
		else if(actionCommand.equals("Remove Item from Shipment"))
			ship_item.actionPerformed(e);
		else if(actionCommand.equals("Delete Store"))
			store.actionPerformed(e);
		else if(actionCommand.equals("Remove Item from Store"))
			stored.actionPerformed(e);
		else if(actionCommand.equals("Delete Purchase"))
			purchase.actionPerformed(e);
		else if(actionCommand.equals("Delete Item from Purchased"))
			purchased_item.actionPerformed(e);
		else if(actionCommand.equals("Delete Customer"))
			customer.actionPerformed(e);
		else if(actionCommand.equals("Delete Return"))
			return_transaction.actionPerformed(e);
		else if(actionCommand.equals("Remove Item from Returns"))
			return_item.actionPerformed(e);
	}

	@Override
	public void show() {
		// TODO Auto-generated method stub
		
	}

	
}
